package com.ruoyi.nongjt.service.impl;

import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.nongjt.domain.NjtUserInfo;
import com.ruoyi.nongjt.domain.NjtUserInfo;

import com.ruoyi.nongjt.mapper.NjtUserInfoMapper;
import com.ruoyi.nongjt.mapper.NjtUserInfoMapper;
import com.ruoyi.nongjt.service.NjtUserInfoService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import java.util.Date;
import java.util.List;

/**
 * @author yang
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class NjtUserInfoServiceImpl implements NjtUserInfoService {
    @Autowired
    private NjtUserInfoMapper njtUserInfoMapper;

    @Override
    public List<NjtUserInfo> getNjtUserInfoList(NjtUserInfo njtUserInfo) {
        return njtUserInfoMapper.selectNjtUserInfoList(njtUserInfo);
    }
 
    @Override
    public int updateNjtUserInfo(NjtUserInfo njtUserInfo) {

        return njtUserInfoMapper.updateNjtUserInfo(njtUserInfo);
    }

    @Override
    public int deleteNjtUserInfoById(Integer userId) {
        return njtUserInfoMapper.deleteNjtUserInfoById(userId);
    }
}
